/*   Copyright 2012 Fernando Moreno Ruiz All Rights Reserved.
 *
 * 	 This file is part of pyPhotosMixer.
 *
 *   pyPhotosMixer is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   pyPhotosMixer is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with pyPhotosMixer.  If not, see <http://www.gnu.org/licenses/>.
 * */
import QtQuick 1.1
import "../commons"

Rectangle {
    width: parent.width
    height: 62
    property alias dir:inputPath.text
    signal dirAccepted()
    Behavior on y{
        NumberAnimation { duration: 3000 }
    }
    Rectangle{
        id:rectText
        anchors.centerIn: parent
        width: parent.width -30
        height: 25
        TextInput{
            id: inputPath
            anchors.verticalCenter: parent.verticalCenter
            anchors.horizontalCenter: parent.horizontalCenter
            width: parent.width-2
            height: parent.height
        }
    }
    Button{
        id: buttonAccept
        width: 200
        height: 30
        color:"#00000000"
        gradient:Gradient{
            GradientStop{color:"white";position:0}
            GradientStop{color:"black";position:1}
        }
        gradientNormal: Gradient{
            GradientStop{color:"white";position:0}
            GradientStop{color:"black";position:1}
        }
        gradientPressed: Gradient{
            GradientStop{color:"black";position:0}
            GradientStop{color:"white";position:1}
        }
        onButtonClicked: dirAccepted()
        anchors.bottom: parent.bottom
        anchors.bottomMargin: 5
        anchors.horizontalCenter: parent.horizontalCenter
        Text{
            anchors.centerIn: parent
            text:"Aceptar"

        }
    }
    Behavior on opacity{
        NumberAnimation{duration: 500}
    }
}
